package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     *
     * @return
     */
    ResponseResult findAll();

    ResponseResult saveChannel(WmChannel wmChannel);

    ResponseResult findByNameAndPage(ChannelDto channelDto);

    ResponseResult updateChannel(WmChannel wmChannel);

    ResponseResult deleteChannel(Integer id);
}